package com.gxgeek.eshopinventory.utils;

import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.JedisPool;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author gaoxing
 * @create 2018-01-12 上午11:45
 */
public class RedisOperation implements Closeable{

    public RedisOperation(JedisCluster jedisCluster, JedisPool jedisPool ) {
    }

    @Override
    public void close() throws IOException {
//        if (commands != null && commands instanceof Jedis) {
//            Jedis jedis = (Jedis) commands;
//            jedis.close();
//        }

    }
}
